package com.xuzhiguang.baidu.pan.sdk.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

import java.util.List;

/**
 * @author xuzhiguang
 * @date 2020/6/26 17:54
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BasicCategoryListResult extends BaiduPanCommonResult {

    /**
     * 下一次的start
     */
    private Integer cursor;

    /**
     * 是否还有数据，1 有、0 没有
     */
    private Integer hasMore;

    /**
     * 文件列表
     */
    private List<BaiduPanFile> list;

    @Override
    public String toString() {
        return "BasicCategoryListResult{" +
                "super=" + super.toString() + '\''+
                ", cursor=" + cursor +
                ", hasMore=" + hasMore +
                ", list=" + list +
                '}';
    }

    public Integer getCursor() {
        return cursor;
    }

    public void setCursor(Integer cursor) {
        this.cursor = cursor;
    }

    public Integer getHasMore() {
        return hasMore;
    }

    public void setHasMore(Integer hasMore) {
        this.hasMore = hasMore;
    }

    public List<BaiduPanFile> getList() {
        return list;
    }

    public void setList(List<BaiduPanFile> list) {
        this.list = list;
    }
}
